package com.ps.feign;

import com.ps.feign.impl.SystemUserFeignImpl;
import com.ps.property.PageBean;
import com.ps.property.SystemUserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author gt
 * @类说明：
 * @date 2020/10/26 21:42
 */
@FeignClient(value = "systemUser-provide",fallback = SystemUserFeignImpl.class)
public interface SystemUserFeign {
    @PostMapping("/systemUserAdd-provide")
    int systemUserAdd(SystemUserVo systemUserVo);

    @GetMapping("/systemUserQuery-provide")
    PageBean<SystemUserVo> systemUserQuery(@RequestParam("currentPage") int currentPage, @RequestParam("pageSize") int pageSize);

    @PostMapping("/systemUserUpdate-provide")
    int systemUserUpdate(SystemUserVo systemUserVo);

    @GetMapping("/systemUserQueryById-provide/{systemUserId}")
    SystemUserVo systemUserQueryById(@PathVariable int systemUserId);
}
